<?php


class Car{
	public $carMode;
	public $carBand;
	public $weight;
	public $speed;

	function getWeight(){
	    return $this->weight;
	}
	function getSpeed(){
	    return $this->speed;
	}
}


$car1 = new Car();
$car1->carMode = "捷达";
$car1->carBand = "大众";
$car1->weight = 1.5;
$car1->speed = 160;
echo $car1->weight;
echo $car1->getWeight();
echo $car1->getSpeed();

